home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: bkol@ix.netcom.com(Robert Kolman )
- Newsgroups: comp.lang.c++
- Subject: BC++ Class Libraries - Example Won't Compile
- Date: 19 Feb 1996 02:16:40 GMT
- Organization: Netcom
- Message-ID: <4g8mi8$5fu@cloner3.netcom.com>
- References: <AMCHAVAN.96Jan25112007@ac2.hq.eso.org> <4f6tt6$rt1@news.cencom.net> <311A83D1.57A3@feith.com> <4fe4m4$f1c@news.ee.net> <4fflin$92t@murrow.cor <4g7k0n$14k@aphex.direct.ca> <4g7oph$pdh@news.jhu.edu>
- NNTP-Posting-Host: ix-dfw16-13.ix.netcom.com
- X-NETCOM-Date: Sun Feb 18 6:16:40 PM PST 1996
-
- /*
- This example, provided in the BC++ 4.5 Class Libraries Guide
- does not compile. It produces 11 error messages, all which resemble
- the following:
-
- Error ..\..\BC45\INCLUDE\CONSTREA.H 129:
- Call to undefined function 'highvideo' in function
- conbuf::highvideo()
- Error ..\..\BC45\INCLUDE\CONSTREA.H 135:
- Call to undefined function 'lowvideo' in function conbuf::lowvideo()
- Error ..\..\BC45\INCLUDE\CONSTREA.H 141:
- Call to undefined function 'normvideo' in function
- conbuf::normvideo()
-
- */
-
- #include <constrea.h>
-
- int main( void )
- {
- constream win1;
-
- win1.window ( 1, 1, 15, 15 );
- win1.clrscr();
-
- win1 << setattr((BLUE << 4 ) | WHITE )
- << "This text is WHITE on BLUE.";
-
- win1 << setxy( 10, 10 )
- << "This text is in the middle of the window.";
-
- return 0;
- }
-
- /*
-
- When I look at <constrea.h>, I find the following definition:
-
- inline void _RTLENTRY conbuf::highvideo()
- {
- activate();
- ::highvideo();
- }
-
- I'm relatively new to C++, but I recognize the class reference.
- Is "::highvideo()" an invocation of the base class, and if so,
- why isn't my compiler finding it?
-
- Thanks in advance for any help.
-
- Bob K.
-
- P.S. This mail message should compile as is. My text is
- commented out.
- */
-
-